package book;

public class BookList {
    private int usedSize;
    Book[] books = new Book[10];

    public int getUsedSize() {
        return usedSize;
    }

    public BookList() {
        this.books[0] = new Book("西游记","吴承恩","小说",66);
        this.books[1] = new Book("红楼梦","曹雪芹","小说",77);
        this.books[2] = new Book("三国演义","罗贯中","小说",88);
        this.books[3] = new Book("坤拳录","cxk","修仙秘籍",25);
        this.usedSize = 4;//在创建书架时直接默认存在3本书
    }

    public Book[] getBooks() {
        return books;
    }

    public void setBooks(Book[] books) {
        this.books = books;
    }

    public void setUsedSize(int usedSize) {
        this.usedSize = usedSize;
    }
}
